﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.IO;

/// <summary>
/// FtpServer 的摘要说明
/// </summary>
public class FtpServer
{   
    protected static string startPath = HttpContext.Current.Server.MapPath("~/Log");

    public static string MapPath(string virtualPath)
    {
        if (string.IsNullOrEmpty(virtualPath) || virtualPath.Equals(".") || virtualPath.Equals("/"))
        {
            return startPath;
        }
        else
        {
            return Path.Combine(startPath, virtualPath);
        }
    }

}